package pl.ydp.components.mathcell.mathrecognizer.characters
{
	import pl.ydp.components.mathcell.mathcell.CellType;
	
	public class CharacterType
	{		
		
		public static function fromCellType(ct:Number):Number{
			if (ct == CellType.ALL){
				return ANY;
			} else if (ct == CellType.DIGIT) {
				return DIGIT;
			} else if (ct == CellType.OPERATOR) {
				return OPERATOR;
			}
			
			return UNKNOWN;
		}
		
		public static const UNKNOWN	:Number 	= 1;
		public static const DIGIT	:Number 	= 4;
		public static const OPERATOR:Number 	= 8;
		public static const BRACKET	:Number		= 16 | DIGIT;
		public static const ANY:Number 			= DIGIT | OPERATOR | BRACKET;
		public static const SPECIAL:Number 		= 32;

	}
}